<?php
    // configuration
    
?>

<div id="body">
<?php
    foreach ($pelanggan_array as $pelanggan)
    {
        print_r($pelanggan);
        form_button(array('value' => $pelanggan->id), 'Delete '.$pelanggan->id, 'onClick="remove()"');
        ?>
        <button type="button" onClick="remove(<?=$pelanggan->id?>)" >Delete <?=$pelanggan->id?></button> 
        <br /><?php
    }
?>

<?=form_open('pelanggan/save', array('id' => 'pelanggan_add'));?>
    
    <?=form_input('nama')?><br />
    <?=form_input('alamat')?><br />
    <?=form_input('telepon')?><br />
    <?=form_input('email')?><br />
    <?=form_textarea('deskripsi')?><br />

    <?=form_button('button', 'Save', 'onClick="save()"')?>
<?=form_close()?>
</div>